<ion-content class="crm-content has-tabs-top" ng-controller="HotelVisitCtrl">
  <ion-refresher
          pulling-text="下拉刷新"
          on-refresh="visit.refresh()">
  </ion-refresher>
  <ul class="list">
    <li class='item item-icon-right ink' style="padding-right: 0;padding-top: 9px;height: 80px;"
        ng-click="showDetail(vis)" ng-repeat="vis in visit.data">
      <div class="row">
        <div class="col-67">
          <h2 style="font-size: 15px">{{vis.hotelName}}</h2>
          <p style="font-size: 15px">拜访人:{{vis.visitUser}}</p>
          <p style="font-size: 15px">{{vis.visitType}}</p>
        </div>
        <div class="col-33" style="padding-top: 8px;">
          <div class="text-right" style="font-size: 15px; padding-right: 30px;">{{vis.visitTime | limitTo:10}}</div>
          <!--<div class="text-right" style="font-size: 15px; padding-right: 30px;">{{vis.visitStatus == '1'?'暂存':'提交'}}</div>-->
          <div class="text-right" style="font-size: 15px; padding-right: 30px;">{{vis.visitWay}}</div>
          <span class="item-note">
            <!--<i class="icon ion-chevron-right icon-accessory"></i>-->
          </span>
        </div>
      </div>
    </li>
    <li class='item item-text-wrap text-center' ng-if="visit.loaded && visit.data.length==0">
      <p>建议您定期拜访私海酒店，与酒店保持良好的联系。</p>
    </li>
  </ul>
  <ion-infinite-scroll
          ng-if="visit.moreDataCanBeLoaded"
          on-infinite="visit.loadMore()"
          distance="5%"
          spinner="dots"
          immediate-check="false">
  </ion-infinite-scroll>
</ion-content>
